<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('production_report_order', function (Blueprint $table) {
            $table->id()->unique()->comment('id');
$table->string('docno', 100)->unique()->comment('单据编号');
$table->integer('production_id')->comment('生产工单ID');
$table->tinyInteger('kingdee_status')->comment('金蝶状态：0未推送，1推送成功，2推送失败');
$table->creatorId();
$table->createdAt();
$table->updatedAt();
$table->deletedAt();

$table->engine='InnoDB';
$table->comment('生产汇报单表头');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('production_report_order');
    }
};
